package main

import (
	"fmt"
	"github.com/robfig/cron"
)

type test4 struct {
	name string
}

var test4Map = make(map[int]string)

func main() {
	crontab := cron.New()
	test4Map[1] = "1111"
	crontab.AddFunc("*/60 * * * * *", test4MapDo)
	crontab.Start()
	var cc map[string]string
	fmt.Println("cc len:", len(cc))
	for {
		go test4MapDo()
	}

	select {}
}

func test4MapDo() {
	fmt.Println(test4Map[1])
}
